<template>
    <div class="container">
        <win_form :inline="true"  ref="opLogForm" :model="reqVO">
            <div class="form_content">
                <#list table.fields as field>
                    <#if cfg.request_columns?seq_contains(field.name)>
                        <#if field.comment!?length gt 0>
                <win_form_item label="${field.comment}">
                    <win_input suffix-icon="xxxx" v-model="reqVO.${field.propertyName}"></win_input>
                </win_form_item>
                        </#if>
                    </#if>
                </#list>
                <win_form_item>
                    <div class="form-button">
                        <win_button @click="query()" type="primary">查询</win_button>
                        <win_button @click="reset()" type="default">重置</win_button>
                    </div>
                </win_form_item>
            </div>
        </win_form>

        <win_table :data="pageVO.list" style="width: 100%" max-height="600px">
            <#list table.fields as field>
                <#if !cfg.basic_columns?seq_contains(field.name)>
                <win_table_column prop="${field.propertyName}"  label="${field.comment}"></win_table_column>
                </#if>
            </#list>
            <win_table_column label="操作" width="180">
                <template slot-scope="scope">
                    <div class="operate">
                        <span @click="detail(scope.row)">查看</span>
                    </div>
                </template>
            </win_table_column>
        </win_table>
        <!-- 分页组件 -->
        <win_pagination v-bind:child-msg="pageVO" @callFather="pageQuery"></win_pagination>
    </div>
</template>
${r'<script lang="ts">'}
import ${entity}Controller from "../controller/${entity}Controller";
import Component from "vue-class-component";
export default class ${entity}View extends ${entity}Controller {}
</script>
<style lang="scss" scoped>
</style>
